package com.imooc.sell.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {
    PARAM_ERROR(1, "参数不正确"),
    PRODUCT_NOT_EXIST(10,"商品不存在"),
    PRODUCT_STOCK_ERROR(20,"库存不正确"),
    ORDER_NOT_EXIST(30,"订单不存在"),
    ORDER_DETAIL_NOT_EXIST(40,"订单详情不存在"),
    ORDER_STATUS_ERROR(50,"订单状态不正确"),
    UPDATE_ORDER_STATUS_ERROR(60,"更新订单状态失败"),
    ORDER_DETAIL_EMPTY(70,"订单详情为空"),
    PAY_STATUS_ERROR(80,"支付状态不正确"),
    UPDATE_PAY_STATUS_ERROR(90,"更新支付状态失败"),
    CART_EMPTY(18, "购物车为空"),
    ORDER_OWNER_ERROR(19, "该订单不属于当前用户"),




    ;


    private Integer code;

    /**
     * msg
     */
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
